package com.example.demo.service.impl;

/**
 * @author chenbenfeng
 * @date 2021-04-12
 */
public class Son extends Father{
    int x = 30;

    public Son() {
        this.print();
        x = 40;
    }

    @Override
    public void print() {
        System.out.println("s.x = " + super.x);
    }
}
